<?php
/**
 * Created by PhpStorm.
 * User: liwentao
 * Date: 22/7/15
 * Time: 12:19
 */

?>
<div class="easyui-panel" style="width:100%">
        <div style="padding:10px 60px 20px 60px">
        <form id="ff" method="post" action="<?php echo CController::createUrl('medicine/addmedicine'); ?>">
            <table cellpadding="5">
                <tr>
                    <td>药品中文名:</td>
                    <td><input class="easyui-textbox" type="text" name="product_name_ch" data-options="required:true"></input></td>
                    <td>药品英文名:</td>
                    <td><input class="easyui-textbox" type="text" name="product_name_en" data-options="required:true"></input></td>
                </tr>
                <tr>
                    <td>通用名称:</td>
                    <td><input class="easyui-textbox" type="text" name="common_name_ch" data-options="required:true"></input></td>
                     <td>类别:</td>
                    <td><input class="easyui-textbox" type="text" name="category" data-options=""></input></td>
                </tr>
                 <tr>
                    <td>包装:</td>
                    <td><input class="easyui-textbox" type="text" name="unit" data-options=""></input></td>
                    <td>规格:</td>
                    <td><input class="easyui-textbox" type="text" name="specification" data-options=""></input></td>
                </tr>
                 <tr>
                    <td>价格:</td>
                    <td><input class="easyui-textbox" type="text" name="price" data-options=""></input></td>
                    <td>条形码:</td>
                    <td><input class="easyui-textbox" type="text" name="bar_code" data-options=""></input></td>
                </tr>
            </table>
        </form>
        <div style="text-align:center;padding:5px">
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重置</a>
        </div>
        </div>
    </div>
    <script>
        function submitForm(){
            $('#ff').form('submit');
        }
        function clearForm(){
            $('#ff').form('clear');
        }
    </script>


